package com.audaque.springboot.foshanupload.web.esdatademo.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * <p>
 * 城市 参数
 * </p>
 *
 * @author zhongguobin
 * @since 2024-03-24
 */
@Data
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "CountryParam", description = "国家 参数")
public class CountryParam  implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 如果不希望分页，可以不传这个参数(页码从1开始)
     */
    @Min(1)
    @Schema(description = "如果不希望分页，可以不传这个参数(页码从1开始)")
    private long pageNum = 1;
    /**
     * pageSize为-1，表示不分页，返回所有数据(默认10)
     */
    @Schema(description = "pageSize为-1，表示不分页，返回所有数据(默认10)")
    @Min(-1)
    @Max(1000)
    private long pageSize = 10;


    @Schema(description = "id")
    @Field(value = "id", type = FieldType.Long)
    private Long id;


}
